package com.example.travelsn.service;

public class SellerService{
        public static boolean signIn(String name, String password) {
            MyUserThread myThread = new MyUserThread("http://192.168.43.169:8080/web_war_exploded/SellerInServlet",name,password);
            try
            {
                myThread.start();
                myThread.join();
            }
            catch (InterruptedException e)
            {
                e.printStackTrace();
            }

            return myThread.getResult();
        }
    public static boolean signUp(String name, String password) {
        MyUserThread myThread = new MyUserThread("http://192.168.43.169:8080/web_war_exploded/SellerUpServlet",name,password);
        try
        {
            myThread.start();
            myThread.join();
        }
        catch (InterruptedException e)
        {
            e.printStackTrace();
        }
        return myThread.getResult();
    }
}



